]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Small cleanup
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 6 Jul 2020 23:21:18 +0000 (01:21 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 10:26:58 +0000 (12:26 +0200)
It's silly to initialize a variable to 0 right before setting it
to its actual value.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1352

js/ui/unlockDialog.js

index ad3aab977a7cf2f56c353648fe26439e94f138c2..aea7b6004e17c355b42791f3efb8badfc9a95995 100644 (file)
@@ -573,11 +573,9 @@ var UnlockDialog = GObject.registerClass({
 
         this._screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
 
-        this._userSwitchEnabledId = 0;
         this._userSwitchEnabledId = this._screenSaverSettings.connect('changed::user-switch-enabled',
             this._updateUserSwitchVisibility.bind(this));
 
-        this._userLoadedId = 0;
         this._userLoadedId = this._user.connect('notify::is-loaded',
             this._updateUserSwitchVisibility.bind(this));